package com.youhome.service.service;


import com.youhome.common.exception.CustomException;
import com.youhome.service.model.Order;
import com.youhome.service.model.Principal;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

/**
 * Created by chen365 on 2017/9/23.
 */
public interface PayService {

    String scanCodePay(Order order, String ip, Integer credential) throws Exception;

    String scanCodePay(Principal principal,String orderNo, String ip, Integer credential) throws CustomException;

    void alipaySuccess(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException;

}
